import logging
from PyQt5.QtWidgets import QWidget, QSizePolicy, QVBoxLayout

from ui.ui_example_widget import Ui_mainWidget


class MainWidget(QWidget,Ui_mainWidget):
    """Class for displaying osa registration related ui elements."""

    def __init__(self, main_ = None, parent=None):
        super().__init__(parent)
        self.name = 'main_widget'
        self.setObjectName(self.name)

        self.main_ = main_
        logging.debug('main widget init')
        self.setupUi(self)
        #self.init_ui()

    def reset_ui(self):
        # reset ui for next test
        logging.debug('reset_ui')

    def init_ui(self):
        """setup structure/layout to the tab
        """

        pass


if __name__ == "__main__":
    import sys
    from PyQt5.QtWidgets import QApplication
    app = QApplication(sys.argv)

    window = MainWidget()
    window.show()
    sys.exit(app.exec_())